﻿<template>
  <div>
    <div style="margin-bottom:15px">
      切换: <el-switch v-model="fill"></el-switch>
    </div>
    <el-space :fill="fill" wrap>
      <el-card class="box-card" v-for="i in 3" :key="i">
        <template #header>
          <div class="card-header">
            <span>卡片标题</span>
          </div>
        </template>
        <div v-for="o in 3" :key="o" class="text item">
          {{ '列表项目 ' + o }}
        </div>
      </el-card>
    </el-space>
  </div>
</template>
<script>
  export default {
    data() {
      return { fill: true }
    },
  }
</script>
